package DB.Dao.RepairWork;

import java.sql.Timestamp;
import java.util.Date;

import junit.framework.TestCase;

public class test extends TestCase {
	public void tAdd(){
		RepairWork work=new RepairWork();
		work.setBreakId(1);
		Timestamp time=new Timestamp( new Date().getTime());
		
		work.setAddTime(time);
		work.setRepairStatue(1);
		work.setWorkName("workName");
		work.setWorkContent("workContent");
		
		RepairWorkDAO dao=new RepairWorkDAO();
		dao.save(work);
		
		
	}
	public void testUp(){
		RepairWorkDAO dao=new RepairWorkDAO();
		RepairWork work=dao.findById(1);
		work.setWorkRecord("!@#!@#");
		dao.attachDirty(work);
	}
}
